﻿using System;
using System.Configuration;
using General;
//+
namespace ESVBible.Service
{
    public static class ESVBibleServiceConfiguration
    {
        //- @ESVBibleServiceKey -//
        /// <summary>
        /// Representation of the ESVBibleServiceKey appSettings element in the configuration file.
        /// </summary>
        public static String ESVBibleServiceKey
        {
            get
            {
                try
                {
                    return ConfigurationFacade.ApplicationSettings("ESVBibleServiceKey");
                }
                catch
                {
                    throw new ConfigurationErrorsException("Key (your access key) is required.  Use TEST for testing and IP for general purpose.");
                }
            }
        }
    }
}